package com.sitecsys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sitecsys.pojo.TbUser;

import java.sql.Blob;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LHB
 * @since 2024-01-06
 */
public interface TbUserMapper extends BaseMapper<TbUser> {

    TbUser login(String phone, String password);

    TbUser selectByPhone(String phone);

    Boolean updateUserByPhone(String phone, byte[] avatar);

    TbUser selectByPhoneAndName(String phone, String username);

    TbUser selectByUsername(String username);

}
